package com.gxa.xiaoucomeshome.service.impl;

import com.gxa.xiaoucomeshome.mapper.SiteMapper;
import com.gxa.xiaoucomeshome.pojo.Site;
import com.gxa.xiaoucomeshome.service.SiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SiteServiceImpl implements SiteService {

    @Autowired
    SiteMapper SiteMapper;
    @Override
    public List<Site> selectByStoresPage() {
        List<Site> site = SiteMapper.selectSiteByPage();
        return site;
    }

    @Override
    public Site selectByState() {
        Site site = SiteMapper.selectByState();
        return site;
    }

}
